﻿<style type="text/css">
    .loginBox,
    .loginBox a { color: white; }
</style>
<div class="loginBox" style="float: right; padding: 4px;">
    @if (Request.IsAuthenticated)
    {
        <span>欢迎您，@Context.User.Identity.Name</span> <span>|</span>
        @Html.ActionLink("退出系统", "Logoff", "UserManager") <span>|</span>
        @Html.ActionLink("修改密码", "ChangePassword", "UserManager")
    }
    else
    {
        @Html.ActionLink("登录", "LogOn", "Account", new { ReturnUrl = @Request.CurrentExecutionFilePath }, null) <span>|</span>
        @Html.ActionLink("注册", "Register", "Account", new { ReturnUrl = @Request.CurrentExecutionFilePath }, null)
    }
</div>
